<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>登陆 - 01CMS网站内容管理系统</title>
<style type="text/css">
body { margin:0; font-size:14px; background:#fff; padding:0; margin:0; }
input { border:1px solid #ccc; }
img { border:none; }
.header { border-bottom:1px solid #333; background:#eee; }
.logo { padding:9px 15px 7px; }
.login { padding:20px; }
.input { border:none; border-bottom:1px solid #ccc; }
.hidden { display:none; }
#validateImage { cursor:pointer; }
</style>
</head>
<body>
<div class="wrapper">
  <div class="header">
    <div class="logo"> <a href="http://www.01cms.com" target="_blank"><img src="{:$smarty.const.PUBLIC_DIR}/common/image/logo.gif" alt="01CMS" /></a> </div>
  </div>
  <!--/header-->
  <div class="login">
    <form>
      用户名:
      <input name="username" type="text" size="12" maxlength="20" class="input posted" />
      密码:
      <input name="password" type="password" size="12" maxlength="20" class="input posted" />
      验证码:
      <input name="validateCode" type="text" size="6" maxlength="6" class="input posted" />
      <img name="" align="absmiddle" id="validateImage" src="{:$smarty.const.BOOT_URL}/common/validateCode" alt="点击重新获取验证码！" onclick="setValidateCode();" />
      <input type="submit"  class="submit" value=" 登 陆 " />
    </form>
  </div>
</div>

<link href="{:$smarty.const.PUBLIC_DIR}/common/style/ui.all.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="{:$smarty.const.PUBLIC_DIR}/common/js/jquery.js"></script>
<script language="javascript" type="text/javascript" src="{:$smarty.const.PUBLIC_DIR}/common/js/ui.core.js"></script>
<script language="javascript" type="text/javascript" src="{:$smarty.const.PUBLIC_DIR}/common/js/ui.draggable.js"></script>
<script language="javascript" type="text/javascript" src="{:$smarty.const.PUBLIC_DIR}/common/js/ui.dialog.js"></script>
<script language="javascript" type="text/javascript" src="{:$smarty.const.PUBLIC_DIR}/common/js/jquery.post.js"></script>
<script language="javascript" type="text/javascript" src="{:$smarty.const.PUBLIC_DIR}/common/js/common.js"></script>
<script language="javascript" type="text/javascript">

$(document).ready(function(){
	$("form").post({
		sendUrl:"{:$smarty.const.BOOT_URL}/admin/login/check",
		trueJs:"redirect('{:$i->url}');",
		falseJs:"setValidateCode();"
	});
});

function setValidateCode()
{
	$("#validateImage").attr('src','{:$smarty.const.BOOT_URL}/common/validateCode/'+Math.ceil(Math.random()*1000));
}

</script>
</body>
</html>
